package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Worker extends Person{
  public Worker(String name, int age)
    {
        super(name, age);
    }
    public void work()
    {
        System.out.println("工作方法是：牛会叫，马会哮,牛马会收到");
    }

}
